<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增整备" bodyClass="white-bg"  libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-preparation-add"  class="form-horizontal">
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售员"/>：
    </label>
        <div class="col-sm-8"><input name="saleUserid" class="form-control" type="text" value="${bpmCrmPreparation.saleUserid}" readonly="true">
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售订单编号"/>：
    </label>
        <div class="col-sm-8"><input name="saleOrderNumber" class="form-control" type="text" value="${bpmCrmPreparation.saleOrderNumber}" readonly="true">
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车辆识别号"/>：
    </label>
        <div class="col-sm-8"><input name="outCarVin" class="form-control" type="text" value="${bpmCrmPreparation.outCarVin}" readonly="true" >
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车型"/>：
    </label>
        <div class="col-sm-8"><input name="outCarVehicle" class="form-control" type="text" value="${bpmCrmPreparation.outCarVehicle}"  readonly="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="orderMemo" class="form-control" readonly="true">${bpmCrmPreparation.orderMemo}</textarea>
        </div>
    </div>

<#if bpmCrmPreparation.processStatus==1 >
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "服务地点"/>：</label>
            <div class="col-sm-8">
                  <@form.radio name="preparationServicePlace" dictType="sys_crm_serviceplace"  required="true"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "服务类型"/>：</label>
            <div class="col-sm-8">
                <@form.select name="preparationServiceType" dictType="sys_crm_servicetype" required="true" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "服务备忘录"/>：</label>
            <div class="col-sm-8">
                <textarea name="preparationServiceMemo" class="form-control" required></textarea>
            </div>
        </div>

        <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "发票单号"/>：
           </label>
            <div class="col-sm-8"><input name="preparationInvoiceNumber" class="form-control" type="text"  required>
            </div>
         </div>
        <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "发票附件"/>：
           </label>
            <div class="col-sm-8"><input name="preparationInvoiceFilepath" class="form-control" type="text"  required>
            </div>
         </div>
        <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "实际金额"/>：
           </label>
            <div class="col-sm-8"><input name="preparationActualAmount" class="form-control" type="text"  required>
            </div>
         </div>
</#if>
<#if bpmCrmPreparation.processStatus!=1 >
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "服务地点"/>：</label>
    <div class="col-sm-8">
        <@form.radio name="preparationServicePlace" dictType="sys_crm_serviceplace" value="${bpmCrmPreparation.preparationServicePlace}"  readonly="true" />
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "服务类型"/>：</label>
    <div class="col-sm-8">
        <@form.select name="preparationServiceType" dictType="sys_crm_servicetype" value="${bpmCrmPreparation.preparationServiceType}"  readonly="true" />
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "服务备忘录"/>：</label>
    <div class="col-sm-8">
        <textarea name="preparationServiceMemo" class="form-control" readonly="true">${bpmCrmPreparation.preparationServiceMemo}</textarea>
    </div>
</div>

<div class="form-group"><label class="col-sm-3 control-label"><@ctx.i18n text = "发票单号"/>：
</label>
    <div class="col-sm-8"><input name="preparationInvoiceNumber" class="form-control" type="text"  value="${bpmCrmPreparation.preparationInvoiceNumber}"  readonly="true">
    </div>
</div>
<div class="form-group"><label class="col-sm-3 control-label"><@ctx.i18n text = "发票附件"/>：
</label>
    <div class="col-sm-8"><input name="preparationInvoiceFilepath" class="form-control" type="text"  value="${bpmCrmPreparation.preparationInvoiceFilepath}"  readonly="true">
    </div>
</div>
<div class="form-group"><label class="col-sm-3 control-label"><@ctx.i18n text = "实际金额"/>：
</label>
    <div class="col-sm-8"><input name="preparationActualAmount" class="form-control" type="text"  value="${bpmCrmPreparation.preparationActualAmount}"  readonly="true">
    </div>
</div>
</#if>
</@form.form>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "bpm/preparation"
    $("#form-preparation-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        opt.warning("流程实例未启动，无法创建此申请单");
        return;
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/add", $('#form-preparation-add').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>